function addMore() {

		var board = document.getElementById("board");
		var e = document.createElement("input");

		e.setAttribute("type", "file");
		e.setAttribute("name", "preview");
		e.setAttribute("size", "50%");
		
		var css = "display:block";
		
		if(!+"\v1"){//ie  
		    e.style.setAttribute("cssText", css);  
		} else {//firefox  
		    e.setAttribute("style", css);  
		}  

		var object = board.appendChild(e);
	}

	function addApp() {

		if (checkValue()) {
			$('#cms-app').submit();
		}
	}

	function checkValue() {

		var name = trim($('#name').value);
		if ('' == name) {
			alert("name is null");
			$('#name').focus();
			return false;
		}

		var avatar = trim($('avatar').value);
		if ('' == avatar) {
			alert("avatar is null");
			$('#avatar').focus();
			return false;
		}

		var author = trim($('#author').value);
		if ('' == author) {
			alert("author is null");
			$('#author').focus();
			return false;
		}

		var categoryId = trim($('#categoryId').value);
		if ('' == categoryId) {
			alert("category is null");
			$('#categoryId').focus();
			return false;
		}

		var apk = trim($('#apk').value);
		if ('' == apk) {
			alert("apk is null");
			$('#apk').focus();
			return false;
		}

		var description = trim($('#description').value);
		if ('' == description) {
			alert("description is null");
			$('#description').focus();
			return false;
		}

		var preview = trim($('#preview').value);
		if ('' == preview) {
			alert("preview is null");
			$('#preview').focus();
			return false;
		}

		return true;
	}

	function trim(value) {
		
		return value;
	}

	function deleteFileInput() {
		var board = document.getElementById("board");
		var lastchild = board.lastChild;
		if (null != lastchild) {
			// delete br
			board.removeChild(lastchild);
		}
	}